<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:p="http://primefaces.prime.com.tr/ui">


<ui:composition template="/templates/user/content.xhtml">
	<ui:define name="pageTitle">Publish Property</ui:define>
	<ui:define name="body">
		<div class="container_24">
			<div class="wrapper">
				<ui:include src="/templates/user/sidebar_for_user.xhtml" />
				<div class="grid_17">
					<div class="inside">

						<h:form id="common-form" styleClass="table-box">
							<article> <header>
							<h2>Property Update</h2>
							</header> 
							<h:panelGroup >
								<p:growl id="messages" showDetail="true"></p:growl>


								<h:inputHidden value="#{updatePropertyBean.pid}" />
								<h:inputHidden  value="#{updatePropertyBean.initResult}"  />
								

							
								<ui:include
									src="/templates/user_update_property/update_basic_info.xhtml" />

								<h3>Property Images</h3>

								<ui:include
									src="/templates/user_update_property/update_property_images.xhtml" />

								<h3>Property Information:</h3>


								<h:panelGroup rendered="#{updatePropertyBean.propType == 'p'}">
									<ui:include
										src="/templates/user_update_property/update_property_for_rent.xhtml"></ui:include>
								</h:panelGroup>
								<h:panelGroup rendered="#{updatePropertyBean.propType == 's'}">
									<ui:include
										src="/templates/user_update_property/update_property_for_sale.xhtml"></ui:include>
								</h:panelGroup>
								<h:panelGroup rendered="#{updatePropertyBean.propType == 'r'}">
									<ui:include
										src="/templates/user_update_property/update_room_for_rent.xhtml"></ui:include>
								</h:panelGroup>
							</h:panelGroup>

							  </article>

							<a4j:jsFunction name="deleteImage"
								action="#{updatePropertyBean.deleteImage}" id="ajax_delete">
								<a4j:param name="deleteLink"
									assignTo="#{updatePropertyBean.deleteLink}" />
							</a4j:jsFunction>

						</h:form>

					</div>
				</div>
			</div>
		</div>
	</ui:define>
</ui:composition>
</html>
